package com.hydra.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hydra.auth.enumerate.DictTypeCatalogEnum;
import com.hydra.base.entity.CodeUserTimeEntity;
import com.hydra.base.operate.log.annotation.OperateLogProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <dl>
 * <dd>Description: 字典类型表 </dd>
 * <dd>@date：2020/1/8 13:39</dd>
 * <dd>@author：Hydra/dd>
 * </dl>
 */
@TableName(value = "basic_dict_type")
public class DictType extends CodeUserTimeEntity {

    private static final long serialVersionUID=1L;

    /**
     * 字典名称
     */
    @Getter @Setter
    @OperateLogProperty("字典名称")
    private String name;

    /**
     * 字典数据分类
     */
    @Getter @Setter
    @OperateLogProperty("字典分类")
    private DictTypeCatalogEnum cate;

    /**
     * 状态
     * OPEN 启用/LOCK 停用
     */
    @Getter @Setter
    @OperateLogProperty("状态")
    private String status;

    @Getter @Setter
    @TableField(exist = false)
    private List<DictData> dataList;

}
